AMD/IOMMU: Move headers to be local
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 3 Feb 2020 13:09:17 +0000 (13:09 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 10 Feb 2020 15:27:50 +0000 (15:27 +0000)
commit17d20e2ce648c2f0ac5784132f67a50ade7cc688
tree540ed9044e4c1ba34fb5b39aae74f1ee8901b810
parentb25fb1a04e99cc03359eade1affb56ef0eee766f
AMD/IOMMU: Move headers to be local

We currently have amd-iommu-defs.h, amd-iommu-proto.h and amd-iommu.h, and no
references outside of the AMD IOMMU driver.

Keep iommu-defs.h as is, but merge amd-iommu.h and amd-iommu-proto.h to just
iommu.h, and move them both into drivers/passthrough/amd/.  (While merging,
drop the bogus #pragma pack around the *_entry structures.)

Take the opportunity to trim the include lists, including x86/mm/p2m.c
which (AFAICT) hasn't needed this include since c/s aef3f2275 "x86/mm/p2m:
break into common, pt-implementation and pod parts" in 2011.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
14 files changed:
xen/arch/x86/mm/p2m.c
xen/drivers/passthrough/amd/iommu-defs.h [new file with mode: 0644]
xen/drivers/passthrough/amd/iommu.h [new file with mode: 0644]
xen/drivers/passthrough/amd/iommu_acpi.c
xen/drivers/passthrough/amd/iommu_cmd.c
xen/drivers/passthrough/amd/iommu_detect.c
xen/drivers/passthrough/amd/iommu_guest.c
xen/drivers/passthrough/amd/iommu_init.c
xen/drivers/passthrough/amd/iommu_intr.c
xen/drivers/passthrough/amd/iommu_map.c
xen/drivers/passthrough/amd/pci_amd_iommu.c
xen/include/asm-x86/amd-iommu.h [deleted file]
xen/include/asm-x86/hvm/svm/amd-iommu-defs.h [deleted file]
xen/include/asm-x86/hvm/svm/amd-iommu-proto.h [deleted file]